import { createApp } from 'vue'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import './style.css'
import App from './App.vue'
import router from './router'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import formatDateTime from './utils/date'
import directTools from './utils/share'
import isMobile from './utils/index'
import store from './store/main'
const app = createApp(App)
app.config.globalProperties.$img = '../assets/img/'
app.config.globalProperties.$formatDateTime = formatDateTime
app.config.globalProperties.$isMobile = isMobile()
app.use(store)
app.use(router)
app.use(ElementPlus)
app.use(mavonEditor)
directTools(app)
app.mount('#app')
